import { http } from '@idmy/core'

export function createOrUpdate(model: any) {
  if (model.id) {
    return http.post('/api/user/user/update', model)
  } else {
    return http.post('/api/user/user/create', model)
  }
}
